package com.i2works.smartluolong.web.service.org.impl;

import com.google.common.collect.Lists;
import com.i2works.smartluolong.utils.base.GlobalConstant;
import com.i2works.smartluolong.utils.basecommon.BaseCommonServiceImpl;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.dal.org.dao.IOrgDAO;
import com.i2works.smartluolong.web.entity.org.OrgDO;
import com.i2works.smartluolong.web.entity.org.OrgQuery;
import com.i2works.smartluolong.web.service.org.IOrgService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;

/**
 * 管理员组织架构业务实现类
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2018/3/26 15:28
 */

@Service("orgService")
public class OrgServiceImpl extends BaseCommonServiceImpl<OrgQuery,OrgDO> implements IOrgService {

    @Autowired
    private IOrgDAO adminOrgDAO;

    @Override
    public List<OrgDO> queryTreeList(OrgQuery query) throws ServiceException {
        try {
            return adminOrgDAO.queryTreeList(query);
        } catch (DAOException e) {
            throw new ServiceException(e);
        }
    }
    
   
    
}
